package main

import "fmt"

type subscriber struct {
	name   string
	rate   float64
	active bool
}

func main() {
	var subscriber1 subscriber
	subscriber1.name = "hujianli1"
	subscriber1.rate = 600
	subscriber1.active = true
	fmt.Printf("name: %s rate: %.2f active: %t\n", subscriber1.name, subscriber1.rate, subscriber1.active)

	var subscriber2 subscriber
	subscriber2.name = "hujianli2"
	subscriber2.rate = 601
	subscriber2.active = true
	fmt.Printf("name: %s rate: %.2f active: %t\n", subscriber2.name, subscriber2.rate, subscriber2.active)

}
